load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")

go_library(
    name = "go_default_library",
    srcs = [
        "foo.go",
        "sub/foo.h",
    ],
    cgo = True,
    importpath = "github.com/bazelbuild/rules_go/tests/cgo_sys_hdr",
)

go_test(
    name = "go_default_test",
    size = "small",
    srcs = ["foo_test.go"],
    embed = [":go_default_library"],
)
